#1、导包
import unittest
from unittestreport import TestRunner

from script.test_login import TestLogin
from script.test_userinfo import TestUserinfo

#2、创建suite套件
suite = unittest.TestSuite()
#3、测试用例添加到suite套件当中
suite.addTest(unittest.makeSuite(TestLogin))
suite.addTest(unittest.makeSuite(TestUserinfo))
#4、生成报告
runner = TestRunner(suite,filename="report.html",report_dir="./reports",title='测试报告12.29',
                 tester='rookieyu',
                 desc="ihrm项目测试生成的报告",)
#5、 执行
runner.run()
